import os
import sys
path = './det_dataset_0901/train/all_anno'
# path = './test'
pre = 'Video_'
# i = 0
for file in os.listdir(path):
    if os.path.isfile(os.path.join(path,file)) == True:
        if (file[0]!='V'):
            cut_name = file
            while(cut_name[0]=='0' and cut_name[1]!='.'):
                cut_name = cut_name[1:]
            new_name = pre + cut_name
            os.rename(os.path.join(path, file), os.path.join(path,new_name))
            print(new_name, 'rename ok')
